package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(30)"json:"account"`
	Password string `gorm:"type:varchar(32)"json:"password"`
	tel      string `gorm:"type:varchar(30)"json:"tel"`
	Address  string `gorm:"type:varchar(50)"json:"address"`
	Image    string `gorm:"type:varchar(30)"json:"image"`
	Username string `gorm:"type:varchar(30)"json:"username"`
}
type Talk struct {
	gorm.Model
	Image  string `gorm:"type:varchar(50)"json:"image"`
	Name   string `gorm:"type:varchar(30)"json:"name"`
	Price  string `gorm:"type:varchar(30)"json:"price"`
	userId int64  `gorm:"type:int"json:"userId"`
}
type Post struct {
	gorm.Model
	Title string `gorm:"type:varchar(30)"json:"title"`
	Desc  string `gorm:"type:varchar(30)"json:"desc"`
	like  string `gorm:"type:varchar(30)"json:"like"`
}
type Class struct {
	userId int64 `gorm:"type:int"json:"userId"`
	TalkId int64 `gorm:"type:int"json:"talkId"`
}
